<?php$prom["upfile"] = $_FILES["file"];$prom["path"] = '../../uploadfiles/event/';$prom["allowExt"] = array('jpeg','jpg','png','gif','bmp');$img_url = upload_file($prom);if($img_url['name']){    $arr['status'] = 200;    $arr['info'] = '上传成功';    $arr['url'] = domain_img().$img_url['name'];    die(json_encode($arr)) ;}else{    $arr['status'] = 501;    $arr['info'] = '上传失败';    $arr['url'] = '';    die(json_encode($arr)) ;}?>